package com.project.service;

import com.github.pagehelper.PageInfo;
import com.project.bean.LogBean;
import com.project.util.InfoResult;

import java.time.LocalDate;

/**
 * @author lyl
 * description:日志业务层接口
 */
public interface ILogService {
    /**
     * 添加新的日志
     *
     * @param username
     */
    InfoResult addLog(String username);

    /**
     * 分页展示日志
     *
     * @param pageNum
     * @param startDate
     * @param endDate
     * @return
     */
    PageInfo<LogBean> showLogByPage(int pageNum, LocalDate startDate, LocalDate endDate);
}
